package com.lfd.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Product {
	// ID
	private Long pid;
	// 类别
	private Long categoryid;
	// 名字
	private String pname;
	// 介绍
	private String pIntroduction;
	// 大小
	private String size;
	// 图片
	private String picurl;
	// 状态
	private String pcanuse;
	// 价格
	private Double price;
	// 颜色
	private String pcolor;
	// 是否删除
	private Boolean isDelete;
	// 创建时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date creattime;
	// 修改时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updatetime;
	// 三个状态
	private Integer pstate;

	// 是否热门
	private Boolean phot;
	// 热门商品排序
	private Long photsort;
	// 是否轮播图
	private Boolean plpt;
	// 轮播图排序
	private Long plptsort;
	// 是否推荐
	private Boolean ptj;
	// 推荐排序
	private Long ptjsort;
	

	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public Long getCategoryid() {
		return categoryid;
	}

	public void setCategoryid(Long categoryid) {
		this.categoryid = categoryid;
	}

	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public String getpIntroduction() {
		return pIntroduction;
	}

	public void setpIntroduction(String pIntroduction) {
		this.pIntroduction = pIntroduction;
	}

	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}

	public String getPicurl() {
		return picurl;
	}

	public void setPicurl(String picurl) {
		this.picurl = picurl;
	}

	public String getPcanuse() {
		return pcanuse;
	}

	public void setPcanuse(String pcanuse) {
		this.pcanuse = pcanuse;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public String getPcolor() {
		return pcolor;
	}

	public void setPcolor(String pcolor) {
		this.pcolor = pcolor;
	}

	public Boolean getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Boolean isDelete) {
		this.isDelete = isDelete;
	}

	public Date getCreattime() {
		return creattime;
	}

	public void setCreattime(Date creattime) {
		this.creattime = creattime;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	public Integer getPstate() {
		return pstate;
	}

	public void setPstate(Integer pstate) {
		this.pstate = pstate;
	}

	public Boolean getPhot() {
		return phot;
	}

	public void setPhot(Boolean phot) {
		this.phot = phot;
	}

	public Long getPhotsort() {
		return photsort;
	}

	public void setPhotsort(Long photsort) {
		this.photsort = photsort;
	}

	public Boolean getPlpt() {
		return plpt;
	}

	public void setPlpt(Boolean plpt) {
		this.plpt = plpt;
	}

	public Long getPlptsort() {
		return plptsort;
	}

	public void setPlptsort(Long plptsort) {
		this.plptsort = plptsort;
	}

	public Boolean getPtj() {
		return ptj;
	}

	public void setPtj(Boolean ptj) {
		this.ptj = ptj;
	}

	public Long getPtjsort() {
		return ptjsort;
	}

	public void setPtjsort(Long ptjsort) {
		this.ptjsort = ptjsort;
	}

	

	public Product(Long pid, Long categoryid, String pname, String pIntroduction, String size, String picurl,
			String pcanuse, Double price, String pcolor, Boolean isDelete, Date creattime, Date updatetime,
			Integer pstate, Boolean phot, Long photsort, Boolean plpt, Long plptsort, Boolean ptj, Long ptjsort) {
		super();
		this.pid = pid;
		this.categoryid = categoryid;
		this.pname = pname;
		this.pIntroduction = pIntroduction;
		this.size = size;
		this.picurl = picurl;
		this.pcanuse = pcanuse;
		this.price = price;
		this.pcolor = pcolor;
		this.isDelete = isDelete;
		this.creattime = creattime;
		this.updatetime = updatetime;
		this.pstate = pstate;
		this.phot = phot;
		this.photsort = photsort;
		this.plpt = plpt;
		this.plptsort = plptsort;
		this.ptj = ptj;
		this.ptjsort = ptjsort;
	}

	public Product() {
		super();
	}

}
